package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class AboutDialog extends JDialog {
    private JLabel lblAbout;
    private JButton btnOk;
    private JPanel contentPane = new JPanel();
    private MainFrame owner;

    public AboutDialog(MainFrame owner) {
	setContentPane(contentPane);
	getContentPane().setLayout(null);

	setTitle("About");
	setResizable(false);

	setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
	this.owner = owner;

	setLocation(400, 200);
	setSize(400, 300);

	lblAbout = new JLabel();
	lblAbout.setText("<html>" + "TROLOLO WE ARE THE TROLOLO TEAM TROLOLO"
		+ "</html>");
	lblAbout.setBounds(10, 10, 390, 200);

	btnOk = new JButton("OK");
	btnOk.setBounds(140, 220, 89, 23);
	btnOk.addActionListener(new ActionListener() {

	    @Override
	    public void actionPerformed(ActionEvent arg0) {
		dispose();
	    }
	});

	contentPane.add(lblAbout);
	contentPane.add(btnOk);

    }
}
